package Demo;

import java.util.Arrays;

public class Demo20 {
    public static void main(String[] args) {
        int[] data = new int[]{1, 2, 3, 6, 54, 4, 9, 4, 96};
        Arrays.sort(data);
        for (int i = 0; i < data.length; i++) {
            System.out.println(data[i]);
        }
        person[] p = new person[3];
        p[0].age = 1;
        p[1].age = 2;
        System.out.println(p[1]);

    }

}

class person {
    int age;
    int sex;

    public person() {

    }
}
